// 食品留样
const smFoodSamples = (request) => {
	return {
		view_smFoodSamples_page(query = {}) {
			return request('/management/smFoodSamples/page', {
				method: 'post',
				data: query,
			})
		},
		view_smFoodSamples_view(id) {
			return request(`/management/smFoodSamples/${id}`, {
				method: 'get',
			})
		},
		view_smFoodSamples_add(query = {}) {
			return request('/management/smFoodSamples/add', {
				method: 'post',
				data: query,
			})
		},
		view_smFoodSamples_edit(query = {}) {
			return request('/management/smFoodSamples/edit', {
				method: 'post',
				data: query,
			})
		},
		view_smFoodSamples_del(query = {}) {
			return request('/management/smFoodSamples/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 日常防火巡查规则
const setDailyFireInspectionRules = (request) => {
	return {
		view_setDailyFireInspectionRules_page(query = {}) {
			return request('/management/setDailyFireInspectionRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setDailyFireInspectionRules_add(query = {}) {
			return request('/management/setDailyFireInspectionRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setDailyFireInspectionRules_edit(query = {}) {
			return request('/management/setDailyFireInspectionRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setDailyFireInspectionRules_del(query = {}) {
			return request('/management/setDailyFireInspectionRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 月度防火巡查规则
const setMonthlyFireInspectionRules = (request) => {
	return {
		view_setMonthlyFireInspectionRules_page(query = {}) {
			return request('/management/setMonthlyFireInspectionRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setMonthlyFireInspectionRules_add(query = {}) {
			return request('/management/setMonthlyFireInspectionRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setMonthlyFireInspectionRules_edit(query = {}) {
			return request('/management/setMonthlyFireInspectionRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setMonthlyFireInspectionRules_del(query = {}) {
			return request('/management/setMonthlyFireInspectionRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}
// 消防维保规则
const setFireProtectionRules = (request) => {
	return {
		view_setFireProtectionRules_page(query = {}) {
			return request('/management/setFireProtectionRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setFireProtectionRules_add(query = {}) {
			return request('/management/setFireProtectionRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setFireProtectionRules_edit(query = {}) {
			return request('/management/setFireProtectionRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setFireProtectionRules_del(query = {}) {
			return request('/management/setFireProtectionRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 消防演练规则
const setFireDrillRules = (request) => {
	return {
		view_setFireDrillRules_page(query = {}) {
			return request('/management/setFireDrillRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setFireDrillRules_add(query = {}) {
			return request('/management/setFireDrillRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setFireDrillRules_edit(query = {}) {
			return request('/management/setFireDrillRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setFireDrillRules_del(query = {}) {
			return request('/management/setFireDrillRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 消防安全教育培训规则
const setFireEducationRules = (request) => {
	return {
		view_setFireEducationRules_page(query = {}) {
			return request('/management/setFireEducationRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setFireEducationRules_add(query = {}) {
			return request('/management/setFireEducationRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setFireEducationRules_edit(query = {}) {
			return request('/management/setFireEducationRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setFireEducationRules_del(query = {}) {
			return request('/management/setFireEducationRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 消防设施全面检测规则
const setFireSafeRules = (request) => {
	return {
		view_setFireSafeRules_page(query = {}) {
			return request('/management/setFireSafeRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setFireSafeRules_add(query = {}) {
			return request('/management/setFireSafeRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setFireSafeRules_edit(query = {}) {
			return request('/management/setFireSafeRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setFireSafeRules_del(query = {}) {
			return request('/management/setFireSafeRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 日常防火巡查
const ffDailyFireInspection = (request) => {
	return {
		view_ffDailyFireInspection_page(query = {}) {
			return request('/management/ffDailyFireInspection/page', {
				method: 'post',
				data: query,
			})
		},
		view_ffDailyFireInspection_view(id) {
			return request(`/management/ffDailyFireInspection/${id}`, {
				method: 'get',
			})
		},
		view_ffDailyFireInspection_add(query = {}) {
			return request('/management/ffDailyFireInspection/add', {
				method: 'post',
				data: query,
			})
		},
		view_ffDailyFireInspection_edit(query = {}) {
			return request('/management/ffDailyFireInspection/edit', {
				method: 'post',
				data: query,
			})
		},
		view_ffDailyFireInspection_del(query = {}) {
			return request('/management/ffDailyFireInspection/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_ffDailyFireInspection_export(query = {}) {
			return request('/management/ffDailyFireInspection/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 月度防火巡查
const ffMonthlyFireInspection = (request) => {
	return {
		view_ffMonthlyFireInspection_page(query = {}) {
			return request('/management/ffMonthlyFireInspection/page', {
				method: 'post',
				data: query,
			})
		},
		view_ffMonthlyFireInspection_view(id) {
			return request(`/management/ffMonthlyFireInspection/${id}`, {
				method: 'get',
			})
		},
		view_ffMonthlyFireInspection_add(query = {}) {
			return request('/management/ffMonthlyFireInspection/add', {
				method: 'post',
				data: query,
			})
		},
		view_ffMonthlyFireInspection_edit(query = {}) {
			return request('/management/ffMonthlyFireInspection/edit', {
				method: 'post',
				data: query,
			})
		},
		view_ffMonthlyFireInspection_del(query = {}) {
			return request('/management/ffMonthlyFireInspection/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_ffMonthlyFireInspection_export(query = {}) {
			return request('/management/ffMonthlyFireInspection/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 消防维保记录
const ffMaintenance = (request) => {
	return {
		view_ffMaintenance_page(query = {}) {
			return request('/management/ffMaintenance/page', {
				method: 'post',
				data: query,
			})
		},
		view_ffMaintenance_view(id) {
			return request(`/management/ffMaintenance/${id}`, {
				method: 'get',
			})
		},
		view_ffMaintenance_add(query = {}) {
			return request('/management/ffMaintenance/add', {
				method: 'post',
				data: query,
			})
		},
		view_ffMaintenance_edit(query = {}) {
			return request('/management/ffMaintenance/edit', {
				method: 'post',
				data: query,
			})
		},
		view_ffMaintenance_del(query = {}) {
			return request('/management/ffMaintenance/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_ffMaintenance_export(query = {}) {
			return request('/management/ffMaintenance/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 消防演练记录
const pbFireDrill = (request) => {
	return {
		view_pbFireDrill_page(query = {}) {
			return request('/management/pbFireDrill/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireDrill_view(id) {
			return request(`/management/pbFireDrill/${id}`, {
				method: 'get',
			})
		},
		view_pbFireDrill_add(query = {}) {
			return request('/management/pbFireDrill/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireDrill_edit(query = {}) {
			return request('/management/pbFireDrill/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireDrill_del(query = {}) {
			return request('/management/pbFireDrill/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbFireDrill_export(query = {}) {
			return request('/management/pbFireDrill/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 消防安全教育培训记录
const pbFireEducation = (request) => {
	return {
		view_pbFireEducation_page(query = {}) {
			return request('/management/pbFireEducation/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireEducation_view(id) {
			return request(`/management/pbFireEducation/${id}`, {
				method: 'get',
			})
		},
		view_pbFireEducation_add(query = {}) {
			return request('/management/pbFireEducation/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireEducation_edit(query = {}) {
			return request('/management/pbFireEducation/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireEducation_del(query = {}) {
			return request('/management/pbFireEducation/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbFireEducation_export(query = {}) {
			return request('/management/pbFireEducation/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 消防设施全面检测记录
const pbFireFighting = (request) => {
	return {
		view_pbFireFighting_page(query = {}) {
			return request('/management/pbFireFighting/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireFighting_view(id) {
			return request(`/management/pbFireFighting/${id}`, {
				method: 'get',
			})
		},
		view_pbFireFighting_add(query = {}) {
			return request('/management/pbFireFighting/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireFighting_edit(query = {}) {
			return request('/management/pbFireFighting/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbFireFighting_del(query = {}) {
			return request('/management/pbFireFighting/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbFireFighting_export(query = {}) {
			return request('/management/pbFireFighting/export', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 智能设备管理
const dotEquipment = (request) => {
	return {
		view_dotEquipment_page(query = {}) {
			return request('/management/dotEquipment/page', {
				method: 'post',
				data: query,
			})
		},
		view_dotEquipment_add(query = {}) {
			return request('/management/dotEquipment/add', {
				method: 'post',
				data: query,
			})
		},
		view_dotEquipment_edit(query = {}) {
			return request('/management/dotEquipment/edit', {
				method: 'post',
				data: query,
			})
		},
		view_dotEquipment_del(query = {}) {
			return request('/management/dotEquipment/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_dotEquipment_export(query = {}) {
			return request('/management/dotEquipment/export', {
				method: 'post',
				data: query,
			})
		},
		view_dotEquipment_statistics(query = {}) {
			return request('/management/dotEquipment/statistics', {
				method: 'get',
				params: query,
			})
		},
	}
}
// 智能设备维护管理
const dotEquipmentMaintainRecord = (request) => {
	return {
		view_dotEquipmentMaintainRecord_page(query = {}) {
			return request('/management/dotEquipmentMaintainRecord/page', {
				method: 'post',
				data: query,
			})
		},
		view_dotEquipmentMaintainRecord_add(query = {}) {
			return request('/management/dotEquipmentMaintainRecord/add', {
				method: 'post',
				data: query,
			})
		},
		view_dotEquipmentMaintainRecord_edit(query = {}) {
			return request('/management/dotEquipmentMaintainRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		view_dotEquipmentMaintainRecord_del(query = {}) {
			return request('/management/dotEquipmentMaintainRecord/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_dotEquipmentMaintainRecord_export(query = {}) {
			return request('/management/dotEquipmentMaintainRecord/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 出入院扫码登记记录
const pbMemberAssess = (request) => {
	return {
		view_pbMemberAssess_page(query = {}) {
			return request('/management/pbMemberAssess/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbMemberAssess_id(id) {
			return request(`/management/pbMemberAssess/${id}`, {
				method: 'get',
			})
		},
		view_pbMemberAssess_add(query = {}) {
			return request('/management/pbMemberAssess/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbMemberAssess_edit(query = {}) {
			return request('/management/pbMemberAssess/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbMemberAssess_del(query = {}) {
			return request('/management/pbMemberAssess/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbMemberAssess_export(query = {}) {
			return request('/management/pbMemberAssess/export', {
				method: 'post',
				data: query,
			})
		},
		view_pbMemberAssess_statistics(query = {}) {
			return request('/management/pbMemberAssess/statistics', {
				method: 'get',
				params: query,
			})
		},
	}
}

// 灭火器管理
const pbFire = (request) => {
	return {
		view_pbFire_page(query = {}) {
			return request('/management/pbFire/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbFire_view(id) {
			return request(`/management/pbFire/${id}`, {
				method: 'get',
			})
		},
		view_pbFire_add(query = {}) {
			return request('/management/pbFire/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbFire_edit(query = {}) {
			return request('/management/pbFire/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbFire_del(query = {}) {
			return request('/management/pbFire/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbFire_export(query = {}) {
			return request('/management/pbFire/export', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 呼吸器管理
const pbRespirator = (request) => {
	return {
		view_pbRespirator_page(query = {}) {
			return request('/management/pbRespirator/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbRespirator_view(id) {
			return request(`/management/pbRespirator/${id}`, {
				method: 'get',
			})
		},
		view_pbRespirator_add(query = {}) {
			return request('/management/pbRespirator/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbRespirator_edit(query = {}) {
			return request('/management/pbRespirator/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbRespirator_del(query = {}) {
			return request('/management/pbRespirator/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbRespirator_export(query = {}) {
			return request('/management/pbRespirator/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 老人外出预约登记
const pbOldmanAppointment = (request) => {
	return {
		view_pbOldmanAppointment_page(query = {}) {
			return request('/management/pbOldmanAppointment/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbOldmanAppointment_id(id) {
			return request(`/management/pbOldmanAppointment/${id}`, {
				method: 'get',
			})
		},
		view_pbOldmanAppointment_add(query = {}) {
			return request('/management/pbOldmanAppointment/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbOldmanAppointment_edit(query = {}) {
			return request('/management/pbOldmanAppointment/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbOldmanAppointment_del(query = {}) {
			return request('/management/pbOldmanAppointment/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbOldmanAppointment_export(query = {}) {
			return request('/management/pbOldmanAppointment/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 物资数量规则
const setMaterialRules = (request) => {
	return {
		view_setMaterialRules_page(query = {}) {
			return request('/management/setMaterialRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setMaterialRules_add(query = {}) {
			return request('/management/setMaterialRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setMaterialRules_edit(query = {}) {
			return request('/management/setMaterialRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setMaterialRules_del(query = {}) {
			return request('/management/setMaterialRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 物资管理
const pbMaterialManage = (request) => {
	return {
		view_pbMaterialManage_page(query = {}) {
			return request('/management/pbMaterialManage/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbMaterialManage_add(query = {}) {
			return request('/management/pbMaterialManage/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbMaterialManage_edit(query = {}) {
			return request('/management/pbMaterialManage/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbMaterialManage_del(query = {}) {
			return request('/management/pbMaterialManage/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbMaterialManage_export(query = {}) {
			return request('/management/pbMaterialManage/export', {
				method: 'post',
				data: query,
			})
		},
		view_pbMaterialManage_statistics(query = {}) {
			return request('/management/pbMaterialManage/statistics', {
				method: 'get',
				params: query,
			})
		},
	}
}

// 到期预警规则设置
const setExpiryWarningRules = (request) => {
	return {
		view_setExpiryWarningRules_page(query = {}) {
			return request('/management/setExpiryWarningRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setExpiryWarningRules_add(query = {}) {
			return request('/management/setExpiryWarningRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setExpiryWarningRules_edit(query = {}) {
			return request('/management/setExpiryWarningRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setExpiryWarningRules_del(query = {}) {
			return request('/management/setExpiryWarningRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 报警限期处理规则
const setAlarmDeadlineRules = (request) => {
	return {
		view_setAlarmDeadlineRules_page(query = {}) {
			return request('/management/setAlarmDeadlineRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setAlarmDeadlineRules_add(query = {}) {
			return request('/management/setAlarmDeadlineRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setAlarmDeadlineRules_edit(query = {}) {
			return request('/management/setAlarmDeadlineRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setAlarmDeadlineRules_del(query = {}) {
			return request('/management/setAlarmDeadlineRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 点卯规则
const setDotRules = (request) => {
	return {
		view_setDotRules_page(query = {}) {
			return request('/management/setDotRules/page', {
				method: 'post',
				data: query,
			})
		},
		view_setDotRules_add(query = {}) {
			return request('/management/setDotRules/add', {
				method: 'post',
				data: query,
			})
		},
		view_setDotRules_edit(query = {}) {
			return request('/management/setDotRules/edit', {
				method: 'post',
				data: query,
			})
		},
		view_setDotRules_del(query = {}) {
			return request('/management/setDotRules/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 抽查监控记录
const scSpotCheckMonitor = (request) => {
	return {
		view_scSpotCheckMonitor_page(query = {}) {
			return request('/management/scSpotCheckMonitor/page', {
				method: 'post',
				data: query,
			})
		},
		view_scSpotCheckMonitor_view(id) {
			return request(`/management/scSpotCheckMonitor/${id}`, {
				method: 'get',
			})
		},
		view_scSpotCheckMonitor_add(query = {}) {
			return request('/management/scSpotCheckMonitor/add', {
				method: 'post',
				data: query,
			})
		},
		view_scSpotCheckMonitor_edit(query = {}) {
			return request('/management/scSpotCheckMonitor/edit', {
				method: 'post',
				data: query,
			})
		},
		view_scSpotCheckMonitor_del(query = {}) {
			return request('/management/scSpotCheckMonitor/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 视频监控
const pbVideoSurveillance = (request) => {
	return {
		view_pbVideoSurveillance_page(query = {}) {
			return request('/management/pbVideoSurveillance/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbVideoSurveillance_add(query = {}) {
			return request('/management/pbVideoSurveillance/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbVideoSurveillance_edit(query = {}) {
			return request('/management/pbVideoSurveillance/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbVideoSurveillance_del(query = {}) {
			return request('/management/pbVideoSurveillance/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
		view_pbVideoSurveillance_export(query = {}) {
			return request('/management/pbVideoSurveillance/export', {
				method: 'post',
				data: query,
			})
		},
	}
}

// 行为分析
const pbVideoAlarm = (request) => {
	return {
		view_pbVideoAlarm_page(query = {}) {
			return request('/management/pbVideoAlarm/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbVideoAlarm_view(id) {
			return request(`/management/pbVideoAlarm/${id}`, {
				method: 'get',
			})
		},
		view_pbVideoAlarm_add(query = {}) {
			return request('/management/pbVideoAlarm/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbVideoAlarm_edit(query = {}) {
			return request('/management/pbVideoAlarm/edit', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 证书管理
const pbCertManagement = (request) => {
	return {
		view_pbCertManagement_page(query = {}) {
			return request('/management/pbCertManagement/page', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 调度记录
const pbDispatch = (request) => {
	return {
		view_pbDispatch_page(query = {}) {
			return request('/management/pbDispatch/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbDispatch_view(id) {
			return request(`/management/pbDispatch/${id}`, {
				method: 'get',
			})
		},
		view_pbDispatch_add(query = {}) {
			return request('/management/pbDispatch/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbDispatch_edit(query = {}) {
			return request('/management/pbDispatch/edit', {
				method: 'post',
				data: query,
			})
		}
	}
}
// 报警/预警事件记录
const pbAlarm = (request) => {
	return {
		view_pbAlarm_page(query = {}) {
			return request('/management/pbAlarm/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbAlarm_view(id) {
			return request(`/management/pbAlarm/${id}`, {
				method: 'get',
			})
		},
		view_pbAlarm_add(query = {}) {
			return request('/management/pbAlarm/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbAlarm_edit(query = {}) {
			return request('/management/pbAlarm/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbAlarm_del(query = {}) {
			return request('/management/pbAlarm/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 隐患评估-任务
const pbHazardAssessmentTask = (request) => {
	return {
		view_pbHazardAssessmentTask_page(query = {}) {
			return request('/management/pbHazardAssessmentTask/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbHazardAssessmentTask_add(query = {}) {
			return request('/management/pbHazardAssessmentTask/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbHazardAssessmentTask_edit(query = {}) {
			return request('/management/pbHazardAssessmentTask/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbHazardAssessmentTask_detail(query: any) {
			return request(`/management/pbHazardAssessmentTask/detail/${query.id}`, {
				method: 'post',
			})
		},
		view_pbHazardAssessmentTask_del(query = {}) {
			return request('/management/pbHazardAssessmentTask/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 隐患评估-机构
const pbHazardAssessment = (request) => {
	return {
		// 判断任务是否可以评估
		view_pbHazardAssessmentTask_judge(id) {
			return request(`/management/pbHazardAssessmentTask/judge/${id}`, {
				method: 'get',
			})
		},
		view_pbHazardAssessment_page(query = {}) {
			return request('/management/pbHazardAssessment/page', {
				method: 'post',
				data: query,
			})
		},
		view_pbHazardAssessment_add(query = {}) {
			return request('/management/pbHazardAssessment/add', {
				method: 'post',
				data: query,
			})
		},
		view_pbHazardAssessment_edit(query = {}) {
			return request('/management/pbHazardAssessment/edit', {
				method: 'post',
				data: query,
			})
		},
		view_pbHazardAssessment_del(query = {}) {
			return request('/management/pbHazardAssessment/del', {
				method: 'post',
				data: {
					batchesDel: query,
				},
			})
		},
	}
}

// 业务数据接口模型
const businessDataModel = (request) => {
	return {
		// 分页查询视频监控管理
		pbVideoSurveillance_page(query = {}) {
			return request('/bussiness/pbVideoSurveillance/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 智能设备管理
		dotEquipment_page(query = {}) {
			return request('/bussiness/dotEquipment/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 日常防火巡查记录
		ffDailyFireInspection_page(query = {}) {
			return request('/bussiness/ffDailyFireInspection/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 月度防火巡查记录
		ffMonthlyFireInspection_page(query = {}) {
			return request('/bussiness/ffMonthlyFireInspection/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 消防维保记录
		ffMaintenance_page(query = {}) {
			return request('/bussiness/ffMaintenance/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 消防演练记录
		pbFireDrill_page(query = {}) {
			return request('/bussiness/pbFireDrill/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 消防安全教育培训记录
		pbFireEducation_page(query = {}) {
			return request('/bussiness/pbFireEducation/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 消防设施全面检测记录
		pbFireFighting_page(query = {}) {
			return request('/bussiness/pbFireFighting/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 报警记录,预警记录
		pbAlarm_page(query = {}) {
			return request('/bussiness/pbAlarm/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 报警调度记录
		pbDispatch_page(query = {}) {
			return request('/bussiness/pbDispatch/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 隐患评估记录
		pbHazardAssessment_page(query = {}) {
			return request('/bussiness/pbHazardAssessment/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 出入院扫码登记记录
		pbMemberAssess_page(query = {}) {
			return request('/bussiness/pbMemberAssess/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 家属预约探视登记记录，家属预约老人出院记录
		pbOldmanAppointment_page(query = {}) {
			return request('/bussiness/pbOldmanAppointment/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 智能设备维护管理 设备维护记录
		dotEquipmentMaintainRecord_page(query = {}) {
			return request('/bussiness/dotEquipmentMaintainRecord/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 灭火器
		pbFire_page(query = {}) {
			return request('/bussiness/pbFire/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 呼吸器
		pbRespirator_page(query = {}) {
			return request('/bussiness/pbRespirator/page', {
				method: 'post',
				data: query,
			})
		},
		// 分页查询 物资管理
		pbMaterialManage_page(query = {}) {
			return request('/bussiness/pbMaterialManage/page', {
				method: 'post',
				data: query,
			})
		},
	}
}

export default ({ request }: any) => ({
	...smFoodSamples(request),
	// 规则设置
	...setDailyFireInspectionRules(request),
	...setMonthlyFireInspectionRules(request),
	...setFireProtectionRules(request),
	...setFireDrillRules(request),
	...setFireEducationRules(request),
	...setFireSafeRules(request),

	...ffDailyFireInspection(request),
	...ffMonthlyFireInspection(request),
	...ffMaintenance(request),
	...pbFireDrill(request),
	...pbFireEducation(request),
	...pbFireFighting(request),
	...dotEquipment(request),
	...dotEquipmentMaintainRecord(request),
	...pbMemberAssess(request),
	...pbFire(request),
	...pbRespirator(request),
	...pbOldmanAppointment(request),
	...pbMaterialManage(request),
	...setMaterialRules(request),
	...setExpiryWarningRules(request),
	...setAlarmDeadlineRules(request),
	...setDotRules(request),
	...scSpotCheckMonitor(request),
	...pbVideoSurveillance(request),
	...pbVideoAlarm(request),
	...pbCertManagement(request),
	...pbDispatch(request),
	...pbAlarm(request),
	...pbHazardAssessmentTask(request),
	...pbHazardAssessment(request),
	...businessDataModel(request),
})
